﻿using System;

namespace Protocol.Constant
{
    /// <summary>
    /// 卡牌花色
    /// </summary>
    public static class CardColor
    {
        public const int NONE = 0;
        public const int CLUE = 1; // 梅花
        public const int HEART = 2; // 红桃
        public const int SPADE = 3; // 黑桃
        public const int SQUARE = 4; // 方片


        public static String GetString(int color)
        {
            switch (color)
            {
                case CLUE:
                    return "Club";
                case HEART:
                    return "Heart";
                case SPADE:
                    return "Spade";
                case SQUARE:
                    return "Square";
                default:
                    throw new Exception("不存在的花色");
            }
        }
    }
}